#  函数内部，自己调用自己,但要添加参数判断，准备递归的出口，不然会死循环

def sum_number(num):
    print(num)
    if num == 1:
        return
    sum_number(num - 1)  # 调用自己


sum_number(3)
